<?php

	////輸出js變數：
	$jsVar['isAdmin'] = true;
	$jsVar['errMsg'] = 'Who is it?';
	$this->view->headScript()->appendScript('jsVar = ' . json_encode($jsVar) . ';');